import request from '../../request/request.js'

// 商家列表
export function getBusinessList(data) {
	return request({
		url: 'api/Serviceproviders/businessList',
		method: "GET",
		data
	})
}
// 新增商家/服务商
export function addSviceShop(data) {
	return request({
		url: 'api/user/addSviceShop',
		method: "POST",
		data
	})
}
// 冻结/解封
export function fzService(data) {
	return request({
		url: 'api/Serviceproviders/fzService',
		method: "POST",
		data
	})
}
// 获取一个商家信息
export function getOneSerivce(data) {
	return request({
		url: 'api/Serviceproviders/getOneSerivce',
		method: "POST",
		data
	})
}
// 修改服务商/商家信息
export function editSerivce(data) {
	return request({
		url: 'api/Serviceproviders/editSerivce',
		method: "POST",
		data
	})
}
// 删除商家
export function delSviceShop(data) {
	return request({
		url: 'api/user/delSviceShop',
		method: "POST",
		data
	})
}
// 订单列表日报
export function getBusinessOrderList(data) {
	return request({
		url: 'api/Serviceproviders/getOrderListByDay',
		method: "GET",
		data
	})
}
// 订单列表月报
export function getBusinessOrderListMonth(data) {
	return request({
		url: 'api/Serviceproviders/getOrderListByMonth',
		method: "GET",
		data
	})
}